package com.hoioy.findjob;

import io.netty.buffer.ByteBufUtil;
import sun.security.provider.MD5;

import java.math.BigDecimal;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.concurrent.BlockingQueue;
import java.util.function.DoubleBinaryOperator;

//java基础数据类型
public class T1 {
    public static void main(String[] args) throws NoSuchAlgorithmException {
        MessageDigest md5 = MessageDigest.getInstance("md5");
        byte[] bytes = md5.digest("a".getBytes(StandardCharsets.UTF_8));

        for (byte b:bytes) {
            System.out.print(b+" ");
        }
        new ArrayList().stream();

        System.out.println();
        System.out.println(3*0.1==3);
        System.out.println(3*0.1);

        //s1转换 https://zhuanlan.zhihu.com/p/111861298
//        short s1 = 1;
//        s1 = s1 + 1; //1
//
//        short s2 = 1;
//        s2 += 1; //2


//        BigDecimal b = new BigDecimal(Double.toString(0.333333d));
//        BigDecimal c = new BigDecimal(Double.toString(0.3334333d));
//        System.out.println(b.add(c));

        char ccc = '你' ;
        String ss = new String("w哦马文瑞的萨芬");
//        byte[] bytes = ss.getBytes("UTF-8");

        System.out.println(ccc);
    }
}
